package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables - replace the example below with your own
    private long id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;
    private ArrayList<Loan> loan;

    /**
     * Constructor for objects of class Person
     */
    public Person(long id, String name, String address, String postalCode, String city, String phone)
    {this.id=id;
     this.name=name;
     this.address=address;
     this.postalCode=postalCode;
     this.city=city;
     this.phone=phone;
     loan=new ArrayList<Loan>();
    }

    public long getId()
    {return id;}
    public String getName()
    {return name;}
    public String getAddress()
    {return address;}
    public String getPostalCode()
    {return postalCode;}
    public String getCity()
    {return city;}
    public String getPhone()
    {return phone;}
    public void setName(String name)
    {this.name=name;}
    public void setAddress(String address)
    {this.address=address;}
    public void setPostalCode(String postalCode)
    {this.postalCode=postalCode;}
    public void setCity(String city)
    {this.city=city;}
    public void setPhone(String phone)
    {this.phone=phone;}
    public void printInfo()
    {System.out.println("Id : " + id);
     System.out.println("Name: " + name);
     System.out.println("Address : " + address);
     System.out.println("Postal Code : " + postalCode);
     System.out.println("City : " + city);
     System.out.println("Phone : " + phone);
    }
    public void addLoan(Loan newLoan)
    {loan.add(newLoan);}
  
}
